﻿<%@ Page Language="C#"  AutoEventWireup="true" CodeFile="CustomerSearchForm.aspx.cs" Inherits="App_Commons_CustomerSearchForm" Title="客户资料检索"%>
<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>客户资料检索</title>
    <link href="../../style/style.css" rel="stylesheet" type="text/css"/>
    <script language="javascript" type="text/javascript" src="../../javascript/commons.aspx"></script>
</head>
<body style="background-image:url('../../images/bgbg2.jpg')">
     <form id="form1" runat="server">
    <table class="table_border_bg">
        <tr>
            <td colspan="6" align="center"><b>客户资料检索画面<br />
                <cc1:ComValidator ID="ComValidator1" runat="server" CheckItems-Capacity="8" ForeColor="Red">
                    <cc1:CheckDateRangeAttribute Code="E0378" ControlToValidator1="timeStart" ControlToValidator2="timeEnd">
                        <cc1:ComAbsParamsAttribute Parameter="结束时间" />
                        <cc1:ComAbsParamsAttribute Parameter="开始时间" />
                    </cc1:CheckDateRangeAttribute>
                </cc1:ComValidator>
            </b></td>
        </tr>
    </table>
    <br/>
    <table width="100%">
      <tr>
        <td style="height: 53px; width: 862px;">
            <table class="table_border_line">
                <tr>
                    <td align="left"  colspan="6">
                    <script language="javascript">
                        (new TitleBar('SearchBar', '检索结果')).showBar();
                    </script>
                    </td>
                </tr>
            </table>
            <table class="table_border_line" style="background-color:#ffffff">

                <tr>
                    <td style="width: 5%">
                    </td>
                    <td align="left" style="white-space: nowrap">
                        客户类别</td>
                    <td align="left">
                        <select id="Select1" style="width: 66px; height: 22px">
                            <option selected="selected" value=""></option>
                            <option value="1">会员</option>
                            <option value="2">非会员</option>
                        </select>
                    </td>
                    <td align="left">
                    </td>
                    <td align="left">
                    </td>
                    <td align="right">
                    </td>
                </tr>
                <tr>
                    <td style="width: 50px; height: 26px">
                        &nbsp;</td>
                    <td align="left" style="width: 120px; white-space: nowrap; height: 26px">
                        客户编号</td>
                    <td align="left" style="height: 26px">
                        <asp:TextBox ID="personId" runat="server"></asp:TextBox>
                    </td>
                    <td align="left" style="height: 26px">
                    </td>
                    <td align="left" style="height: 26px">
                    </td>
                    <td align="right" style="height: 26px">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 50px; height: 26px;">
                        &nbsp;</td>
                    <td align="left" style="width: 120px; white-space: nowrap; height: 26px;">
                        姓名</td>
                    <td align="left" style="height: 26px">
                        <asp:TextBox ID="name" runat="server"></asp:TextBox>
                    </td>
                    <td align="left" style="height: 26px">
                    </td>
                    <td align="left" style="height: 26px">
                    </td>
                    <td align="right" style="height: 26px">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 50px">
                        &nbsp;</td>
                    <td align="left" style="width: 120px; white-space: nowrap">
                        登记时间</td>
                    <td align="left">
                        <asp:TextBox ID="timeStart" runat="server"></asp:TextBox>~<asp:TextBox ID="timeEnd" runat="server"></asp:TextBox>
                    </td>
                    <td align="left">
                    </td>
                    <td align="left">
                    </td>
                    <td align="right">
                        &nbsp;</td>
                </tr>
            </table>
        </td>
      </tr>
      <tr>
        <td align="center" style="width: 862px">
            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="FindAll"
                TypeName="Shpm.App.Master.Dao.PersonInfoDao">
                <SelectParameters>
                    <asp:ControlParameter ControlID="personId" Name="personId" PropertyName="Text" Type="String" />
                    <asp:ControlParameter ControlID="name" Name="name" PropertyName="Text" Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
          <table>
             <tr>
                <td style="width:69px; height: 24px;">
                    <asp:Button ID="search" runat="server" CssClass="button1" OnClick="search_Click"
                        Text="检 索" Width="100%" /></td>						
             </tr>
          </table>    
           
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                BackColor="White" BorderColor="LightSteelBlue" BorderStyle="Solid" BorderWidth="2px"
                DataSourceID="ObjectDataSource1" OnRowCommand="GridView1_RowCommand" OnRowDataBound="GridView1_RowDataBound" 
                Width="100%">
                <RowStyle BackColor="White" BorderColor="White" ForeColor="Black" />
                <SelectedRowStyle ForeColor="Black" />
                <PagerSettings Mode="NextPreviousFirstLast" />
                <Columns>
                    <asp:BoundField DataField="PersonId" HeaderText="客户编号" />
                    <asp:BoundField DataField="NameC" HeaderText="姓名" />
                    <asp:TemplateField HeaderText="性别">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Sex") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("Sex") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    
                    <asp:ButtonField Text="SingleClick" CommandName="SingleClick" Visible="false" />

                </Columns>
                <HeaderStyle BackColor="#4D6185" BorderColor="LightSteelBlue" BorderStyle="Solid"
                    BorderWidth="2px" ForeColor="#FFFF80" />
            </asp:GridView>
        </td>
      </tr>
    </table>
  
   </form>
 </body>
 </html>